REM 45
CLS
INPUT "vv razmer matritcu", k,l
PRINT "vv el-tu"
FOR i=1 TO k
FOR j=1 TO l
INPUT "", a(i,j)
NEXT j
NEXT i
PRINT "vu vveli"
FOR i=1 TO k
PRINT
FOR j=1 TO l
PRINT a(i,j); " ";
NEXT j
PRINT
NEXT i
PRINT "novaya matritca"
S=0
FOR i=1 TO k
FOR j=1 TO l
S=S+a(i,j)
NEXT j
NEXT i
SR=S/(k*l)
FOR i=1 TO k
FOR j=1 TO l
IF(a(i,j)<SR) THEN a(i,j)=1
NEXT j
NEXT i
FOR i=1 TO k
PRINT
FOR j=1 TO l
PRINT a(i,j); " ";
NEXT j
PRINT
NEXT i
END
Тестирование выполнено в программе QB64 ( Скачать )